<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>微信支付凭证列表</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <#include "/view/admin/head.html"/>
    <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
    <script type="text/javascript" src="${base}/jstool/bootstrap-select/js/bootstrap-select.min.js"></script>
    <script type="text/javascript" src="${base}/jstool/bootstrap-select/lang/defaults-zh_CN.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-select/css/bootstrap-select.min.css" />

    <style type="text/css">
        .table-class{
            width:90%;
            text-align: center;
            border:1px solid #afd9ee;
            margin:0 auto;
            margin-top: 50px;
        }
        .list-path{
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;

        }
        table th{
            text-align: center;
            WORD-WRAP: break-word;
            width: 100px;
        }
        table thead tr {
            background-color: #9acfea;
        }
        .table-query{
            /*height: 40px;*/
            /*width:80px;*/
            /*text-align: center;*/
            white-space:nowrap;
            /*position: relative;*/
            float: left;
            display:inherit;
            /*display: inline;*/


        }
        .label-head{
            height: 60px;
            width: 100%;
        }
        .bs-example .input-group{
            width:300px;
            float: left;
            margin-top:20px;

        }
        .bank-label{
            width:25px;
            float: left;
        }
        .label-hidden{
            display: none;
        }
        .panel-body{
            padding-top: 0px;
        }
        .input-group input[type='text']{
            z-index: inherit;
        }
       /* .input-group{
            margin-top:20px;
        }*/
    </style>
    <script type="text/javascript">
        function query(dm){
            var href = "${base}/czjweixinvoucher/list.do?";

            href+='out_trade_no='+$('#out_trade_no').val()+"&";

            href+='paytimeStart='+$('#paytimeStart').val()+"&";
            href+='paytimeEnd='+$('#paytimeEnd').val();
                    

            location.href=href;
        }
        $(function() {
            //初始化
                $('#paytimeStart').datetimepicker({language: 'zh-CN', todayBtn : true });
                $('#paytimeEnd').datetimepicker({language: 'zh-CN', todayBtn : true });
        });
    </script>
</head>
<body>

<#include "/view/admin/listnav.html"/>

<div class="table-class">
    <div class="panel panel-default" style="margin: 10px 50px 10px;">
     <div class="panel-body">
        <form class="bs-example bs-example-form" role="form">

            <div class="input-group">
                <span class="input-group-addon">微信支付订单号</span>
                <input type="text" id="transaction_id" class="form-control" value="${entity.transaction_id!}" placeholder="请输入微信支付订单号">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">商户订单号</span>
                <input type="text" id="out_trade_no" class="form-control" value="${entity.out_trade_no!}" placeholder="请输入商户订单号">
            </div>
                <span class="bank-label">&nbsp;</span>




                <div class="input-group">
                    <span class="input-group-addon">开始支付完成时间</span>
                    <input type="text" id="paytimeStart" class="form-control" value="<#if (entity.paytimeStart)?? >${entity.paytimeStart?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="paytimeStart" name="paytimeStart" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>
                <div class="input-group">
                    <span class="input-group-addon">结束支付完成时间</span>
                    <input type="text" id="paytimeEnd" class="form-control" value="<#if (entity.paytimeEnd)?? >${entity.paytimeEnd?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="paytimeEnd" name="paytimeEnd" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>


            <div class="input-group" style="text-align: right;">
                <a class="btn btn-info"  href="javascript:query(this)"><span class="glyphicon glyphicon-search"></span> 查找</a>

            </div>
        </form>
     </div>
    </div>

<#include "/view/admin/opermsg.html"/>


    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>序号</th>

                <th>用户标识</th>
                <th>是否关注公众账号</th>

                <th>订单金额</th>

                <th>微信支付订单号</th>
                <th>商户订单号</th>

                <th>支付完成时间</th>


        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>


                            <td>${c.telephone!}</td>

                            	<td>
                            	<#if c.is_subscribe??>
                            			<#if c.is_subscribe=="Y">
                            			是
                            			</#if>
                            			<#if c.is_subscribe=="N">
                            			否
                            			</#if>
                            		
                            		<#else>
                            		--
                            	</#if>
                            </td>



                            <td>${c.total_fee!}</td>



                            <td>${c.transaction_id!}</td>

                            <td>${c.out_trade_no!}</td>



                        <td><#if c.paytime?? >${c.paytime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>


            </tr>


        </#list>
        <#if 0==pagination.totalCount>
            <tr>
                <td colspan="11" style="color: red"> 没有相关数据 </td>
            </tr>
        </#if>






        </tbody>
    </table>
    <#include "/view/admin/pagination.html"/>


</div>
<script>
    function setPage(pageNo,pageSize){
        var href = "${base}/czjweixinvoucher/list.do?";
        href+='out_trade_no='+$('#out_trade_no').val()+"&";

        href+='paytimeStart='+$('#paytimeStart').val()+"&";
        href+='paytimeEnd='+$('#paytimeEnd').val();

        href+="&pageNo="+pageNo;
        href+="&pageSize="+pageSize;
        location.href=href;
    }
    function checkDelete(url){
        if (window.confirm("确认删除吗?")) {
            location.href=url;
        }
    }

</script>

</body>
</html>
